package com.onlineMIS.action.headQ.report;

import java.util.Date;

import com.onlineMIS.ORM.entity.chainS.sales.ChainStoreSalesOrderProduct;
import com.onlineMIS.ORM.entity.headQ.inventory.InventoryOrder;
import com.onlineMIS.common.Common_util;


public class HqTabletReportItemVO extends HqReportItemVO{

	/**
	 * 
	 */
	private static final long serialVersionUID = -6984499835877761941L;

	protected int quantity = 0;//选货数量
	protected int quantityPei = 0;//配货数量
	protected int noQuantityPei = 0;//未配数量
	protected int progress = 0;//配货率
	protected String brand;
	protected int inventory = 0; //当前库存
	protected boolean notManuf = false; //停止生产

	private String img = "";	
	
	
														
	public HqTabletReportItemVO() {
		super();
	}



	public HqTabletReportItemVO(String name, int parentId, int custId, int yearId, int quarterId, int brandId,int categoryLevelId, int categoryId,  int pbId, String state){
		super(name, parentId, custId, yearId, quarterId, brandId, pbId, state,categoryLevelId,categoryId);
	}




	public boolean getNotManuf() {
		return notManuf;
	}



	public void setNotManuf(boolean notManuf) {
		this.notManuf = notManuf;
	}



	public void putValue(int quantity,int quantityPei) {
		this.setQuantity(quantity);
		this.setQuantityPei(quantityPei);
		this.setNoQuantityPei(this.getQuantity() - this.quantityPei);
		double completeRate  = (double)quantity/(double)quantityPei;
		this.setProgress((int) (Common_util.getFormatDouble(completeRate)*100));
	}

	
	public int getInventory() {
		return inventory;
	}



	public void setInventory(int inventory) {
		this.inventory = inventory;
	}



	public String getImg() {
		return img;
	}
	public void setImg(String img) {
		this.img = img;
	}

	public int getQuantity() {
		return quantity;
	}

	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}

	public int getQuantityPei() {
		return quantityPei;
	}

	public void setQuantityPei(int quantityPei) {
		this.quantityPei = quantityPei;
	}
	

	public int getNoQuantityPei() {
		return noQuantityPei;
	}

	public void setNoQuantityPei(int noQuantityPei) {
		this.noQuantityPei = noQuantityPei;
	}

	public int getProgress() {
		return progress;
	}

	public void setProgress(int progress) {
		this.progress = progress;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}
	
	

}
